package com.ygqh.baby.model;

import com.ygqh.baby.ao.CheckStatus;
import com.ygqh.baby.ao.InviteType;
import com.ygqh.baby.ao.UserType;
import com.ygqh.baby.po.YgAgentLevel;
import com.ygqh.baby.po.YgUserBalance;
import com.ygqh.baby.utils.ShareCodeUtil;

import java.util.Date;
import java.util.List;

public class AgentUserModel {
	
	private Long userId;

	private String userName;
	
	private String nickName;
	
	private String headImageUrl;
	
	private String openId;
	
	private Integer level;
	
	private UserType userType;
	
	private String inviteCode;
	
	private InviteType inviteType;
	
	private String createTime;
	
	private Date receiveTime;
	
	private Date cancelTime;
	
	private Date expireTime;

	private CheckStatus checkStatus;

	private YgAgentLevel agentLevel;

	private String remark;
	
	private List<YgUserBalance> userBalanceList;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getHeadImageUrl() {
		return headImageUrl;
	}

	public void setHeadImageUrl(String headImageUrl) {
		this.headImageUrl = headImageUrl;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public UserType getUserType() {
		return userType;
	}

	public void setUserType(UserType userType) {
		this.userType = userType;
	}

	public String getInviteCode() {
		return inviteCode;
	}

	public void setInviteCode(String inviteCode) {
		this.inviteCode = inviteCode;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Date getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Date receiveTime) {
		this.receiveTime = receiveTime;
	}

	public Date getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(Date cancelTime) {
		this.cancelTime = cancelTime;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public InviteType getInviteType() {
		return inviteType;
	}

	public void setInviteType(InviteType inviteType) {
		this.inviteType = inviteType;
	}

	public Date getExpireTime() {
		return expireTime;
	}

	public void setExpireTime(Date expireTime) {
		this.expireTime = expireTime;
	}

	public List<YgUserBalance> getUserBalanceList() {
		return userBalanceList;
	}

	public void setUserBalanceList(List<YgUserBalance> userBalanceList) {
		this.userBalanceList = userBalanceList;
	}

	public CheckStatus getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(CheckStatus checkStatus) {
		this.checkStatus = checkStatus;
	}

	public YgAgentLevel getAgentLevel() {
		return agentLevel;
	}

	public void setAgentLevel(YgAgentLevel agentLevel) {
		this.agentLevel = agentLevel;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getShareCode() {
		return this.userId == null ? null : ShareCodeUtil.toSerialCode(this.userId);
	}
}
